﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnterDialog : MonoBehaviour
{

    public GameObject enterDialog;

    void OnTriggerEnter2D(Collider2D collider)
    {

        if(collider.tag == "Player") {
            enterDialog.SetActive(true);
        }

    }

    void OnTriggerExit2D(Collider2D collider)
    {
         if(collider.tag == "Player") {
            enterDialog.SetActive(false);
        }
    }
}
